<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>maintenance</title>
<link rel="stylesheet" type="text/css" href="../../skin/css/base.css">
<script language="javascript">
function viewArc(aid){
 if(aid==0) aid = getOneItem();
 window.open("archives.asp?aid="+aid+"&action=viewArchives");
}
function editArc(aid){
 if(aid==0) aid = getOneItem();
 location="archives.asp?aid="+aid+"&action=editArchives";
}
function updateArc(aid){
 var qstr=getCheckboxItem();
 if(aid==0) aid = getOneItem();
 location="archives.asp?aid="+aid+"&action=makeArchives&qstr="+qstr+"";
}
function checkArc(aid){
 var qstr=getCheckboxItem();
 if(aid==0) aid = getOneItem();
 location="archives.asp?aid="+aid+"&action=checkArchives&qstr="+qstr+"";
}
function moveArc(aid){
 var qstr=getCheckboxItem();
 if(aid==0) aid = getOneItem();
 location="archives.asp?aid="+aid+"&action=moveArchives&qstr="+qstr+"";
}
function adArc(aid){
 var qstr=getCheckboxItem();
 if(aid==0) aid = getOneItem();
 location="archives.asp?aid="+aid+"&action=commendArchives&qstr="+qstr+"";
}
function delArc(aid){
 var qstr=getCheckboxItem();
 if(aid==0) aid = getOneItem();
 location="archives.asp?aid="+aid+"&action=delArchives&qstr="+qstr+"";
}

//获得选中文件的文件名
function getCheckboxItem()
{
 var allSel="";
 if(document.form2.id.value) return document.form2.id.value;
 for(i=0;i<document.form2.id.length;i++)
 {
  if(document.form2.id[i].checked)
  {
   if(allSel=="")
    allSel=document.form2.id[i].value;
   else
    allSel=allSel+"`"+document.form2.id[i].value;
  }
 }
 return allSel;
}

//获得选中其中一个的id
function getOneItem()
{
 var allSel="";
 if(document.form2.id.value) return document.form2.id.value;
 for(i=0;i<document.form2.id.length;i++)
 {
  if(document.form2.id[i].checked)
  {
    allSel = document.form2.id[i].value;
    break;
  }
 }
 return allSel;
}
function selAll()
{
 for(i=0;i<document.form2.id.length;i++)
 {
  if(!document.form2.id[i].checked)
  {
   document.form2.id[i].checked=true;
  }
 }
}
function noSelAll()
{
 for(i=0;i<document.form2.id.length;i++)
 {
  if(document.form2.id[i].checked)
  {
   document.form2.id[i].checked=false;
  }
 }
}
</script>
</head>
<body leftmargin="8" topmargin="8" background='skin/images/allbg.gif'>

<!--  搜索表单  -->
<form name='form3' action='' method='get'>
<input type='hidden' name='dopost' value='' />
<table width='98%'  border='0' cellpadding='1' cellspacing='1' bgcolor='#CBD8AC' align="center" style="margin-top:8px">
  <tr bgcolor="#E7E7E7">
    <td height="29">&nbsp;车辆维修刘表</td>
  </tr>
  <tr bgcolor='#EEF4EA'>
    <td background='skin/images/wbg.gif' align='center'>
      <table width="90%" height="26" border='0' cellpadding='0' cellspacing='0'>
        <tr>
		  <td width="7%"></td>
          <td width='11%' align='center'>&nbsp;车牌号:</td>
		  <td width='19%'><select name='cid' style='width:150'>
          <option value='0'>选择车牌号...</option>
           <option value='1'>京NAB999</option>
		   <option value='1'>苏NCD333</option>
          </select></td>
          <td width='9%'>驾驶员:</td>
		  <td width='19%'> <input type='text' name='companyName' value=''/></td>
      	 <td width='10%'>维修公司:</td>
		  <td width='20%'> <input type='text' name='companyName' value=''/></td>
        <td width="5%">
          <input name="imageField" type="image" src="../../skin/images/frame/search.gif"  height="20" border="0" class="np"/>        </td>
       </tr>
      </table>
    </td>
  </tr>

</table>
</form>

<!--  内容列表   -->
<form name="form2">

<table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D1DDAA" align="center" style="margin-top:8px">
<tr align="center" bgcolor="#E7E7E7" height="22">
 <td width="4%">ID</td>
 <td width="4%">选择</td>
 <td width="9%">货运单号</td>
 <td width="8%">车牌号</td>
 <td width="5%">驾驶员</td>
 <td width="7%">维修日期</td>
 <td width="5%">维修公司</td>
 <td width="8%">维修地点</td>
 <td width="5%">维修原因</td>
 <td width="18%">具体情况说明</td>
 <td width="6%">操作</td>
 
</tr>

<tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22" >
 <td align="center">1</td>
 <td align="center"><input name="id" type="checkbox" id="id" value="101" class="np"></td>
 <td><a href=''><u>2011-5-4-A</u></a></td>
 <td align="center">京NAB999</td>
 <td align="center">王三</td>
 <td align="center">2011-5-4</td>
 <td align="center">好运公司</td>
 <td align="center">G303国道</td>
 <td align="center">1200</td>
 <td align="center">其实俺就超了点点速，以为没事的啊。。。。。</td>
 <td align="center"><a href="101">编辑</a></td>
</tr>

<tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22" >
 <td align="center">2</td>
 <td align="center"><input name="id" type="checkbox" id="id" value="101" class="np"></td>
 <td><a href=''><u>2011-5-4-A</u></a></td>
 <td align="center">京NAB999</td>
 <td align="center">王三</td>
 <td align="center">2011-5-4</td>
 <td align="center">货车维修站</td>
 <td align="center">G303国道</td>
 <td align="center">1200</td>
 <td align="center">其实俺就超了点点速，以为没事的啊。。。。。</td>
 <td align="center"><a href="101">编辑</a></td>
</tr>

<tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22" >
 <td align="center">3</td>
 <td align="center"><input name="id" type="checkbox" id="id" value="101" class="np"></td>
 <td><a href=''><u>2011-5-4-A</u></a></td>
 <td align="center">京NAB999</td>
 <td align="center">王三</td>
 <td align="center">2011-5-4</td>
 <td align="center">天天开好车</td>
 <td align="center">G303国道</td>
 <td align="center">1200</td>
 <td align="center">其实俺就超了点点速，以为没事的啊。。。。。</td>
 <td align="center"><a href="101">编辑</a></td>
</tr>

<tr bgcolor="#FAFAF1">
<td height="28" colspan="11">
 &nbsp;
 <a href="javascript:selAll()" class="coolbg">全选</a>
 <a href="javascript:noSelAll()" class="coolbg">取消</a>
 <a href="javascript:updateArc(0)" class="coolbg">&nbsp;新增&nbsp;</a>
 <a href="javascript:delArc(0)" class="coolbg">&nbsp;删除&nbsp;</a>
</td>
</tr>
<tr align="right" bgcolor="#EEF4EA">
 <td height="36" colspan="11" align="center"><!--翻页代码 --></td>
</tr>
</table>

</form>


</body>
</html>

